package com.hcms.common.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.FileNotFoundException;
import java.io.IOException;

public interface IOssService {

    /**
     * 上传资源
     *
     * @param file
     * @return
     */
    String uploadObject(MultipartFile file) throws IOException;

    /**
     * 删除资源
     *
     * @param url
     * @return
     */
    boolean deleteObject(String url) throws FileNotFoundException;

}
